//
//  CAnAlgAutoDetecActivity.h
//  sr01sdkProject
//
//  Created by  on 2024/9/2.
//  Automatically detected activity data

#import <Foundation/Foundation.h>
#import "CANalgProtocal.h"

NS_ASSUME_NONNULL_BEGIN

// Types of Exercise
@interface CAnAlgAutoDetecActivity : NSObject<CANalgProtocal>
@property(assign, nonatomic, readonly)uint8_t cmdByte;

@property(assign, nonatomic, readonly)NSUInteger timeStamp;// Timestamp, accurate to day

@property(strong, nonatomic, readonly)NSNumber *dataUuid;

@property(assign, nonatomic, readonly)float distance;// unit:km
@property(assign, nonatomic, readonly)uint16_t steps;// The sum of walking and running steps in 5 minutes

@property(assign, nonatomic, readonly)uint16_t wholeEnergyCnsmptn;// Total energy expenditure in 5 minutes, including basal metabolic rate, unit: Kcal
@property(assign, nonatomic, readonly)uint16_t activityEnergyCnsmptn;// Total activity energy expenditure within 5 minutes, excluding basal metabolic rate, unit: Kcal
@property(strong, nonatomic, readonly) NSNumber * vo2; // Oxygen uptake (VO2): Range 0-255, Unit: ml/kg/min
@property(strong, nonatomic, readonly) NSNumber * vo2Max; //  VO2 Max, range 0-255, unit: ml/kg/min

@property(assign, nonatomic, readonly) CAnAlgAutoDetec_Exe_type keepExeType;
@property(assign, nonatomic, readonly) CAnAlgAutoDetec_ACTIVITY_TYP activityType;

- (instancetype)initWithData:(NSData *)data;
-(NSNumber *)dataTimeStamp;
@end

NS_ASSUME_NONNULL_END
